#include "CompetenceNivNbr.h"

using namespace std;

const ScoreAdditionnel CompetenceNivNbr::SANombre( Nombre );

CompetenceNivNbr::CompetenceNivNbr( const string& nom,
				      const unsigned& prix )
  : CompetenceClasseBase( "CompetenceNivNbr", nom, "", prix )
{}

CompetenceNivNbr::CompetenceNivNbr( const string& nom,
				      const string& alias,
				      const unsigned& prix )
  : CompetenceClasseBase( "CompetenceNivNbr", nom, alias, prix )
{}

CompetenceNivNbr::~CompetenceNivNbr()
{}

CompetenceNivNbr::CompetenceNivNbr( const CompetenceNivNbr& nivNbr )
  : CompetenceClasseBase( nivNbr )
{}

const ScoreAdditionnel& CompetenceNivNbr::autreScore() const
{
  return SANombre;
}

CompetenceClasseBase* CompetenceNivNbr::creerCopie() const
{
  return new CompetenceNivNbr( *this );
}

void CompetenceNivNbr::afficherInstance( ostream& os ) const
{
  os << nom();
  if ( aliasDefini() )
    os << " (alias " << aliasNom() << ")";
  os << ", coût " << prix();
  os  << " (associé à un score sur 20 dépendant du niveau)";
}

void CompetenceNivNbr::afficherInstance( FlotMessage& flot ) const
{
  flot << nom();
  if ( aliasDefini() )
    flot << " (alias " << aliasNom() << ")";
  flot << ", coût " << prix();
  flot  << " (associé à un score sur 20 dépendant du niveau)";
}
